#ifndef FILEBACKUPTHREAD_H
#define FILEBACKUPTHREAD_H

#include <QThread>
#include <QString>
#include <QFile>

class FileBackupThread : public QThread {
    Q_OBJECT

public:
    explicit FileBackupThread(const QString& sourcePath, const QString& destPath, QObject* parent = nullptr);

protected:
    void run() override;

signals:
    void backupSuccess(const QString& source, const QString& dest);
    void backupFailed(const QString& source, const QString& dest);

private:
    QString sourcePath_;
    QString destPath_;
};

#endif // FILEBACKUPTHREAD_H
